package com.studentmanagement.dto;

import com.studentmanagement.po.StudentPO;
import lombok.Data;
import lombok.ToString;

/**
 * @author hexujie
 * @date 2023-06-21 0:51
 */
@Data
@ToString
public class StudentDTO {
    private Integer id;
    private String name;
    private Integer majorId;
    private Integer classId;
    private Integer age;
    private String sex;
    private String account;
    private String password;
    private String type;

    public StudentPO getStudentPO() {
        StudentPO studentPO = new StudentPO();
        studentPO.setStudentId(id);
        studentPO.setClassId(classId);
        studentPO.setAge(age);
        studentPO.setName(name);
        studentPO.setSex(sex);
        studentPO.setMajorId(majorId);
        return studentPO;
    }
}
